package thread;

public class ThreadInfoDemo {
    public static void main(String[] args) {
        Thread main  = Thread.currentThread();

        //名字
        String name = main.getName();
        System.out.println(name);

        //唯一标识
        long id = main.getId();
        System.out.println(id);

        //优先级
        int priority = main.getPriority();
        System.out.println(priority);
    }
}
